define([],function(){
	var tpl = {};

	tpl.info = function(){
		return info();
	}
	tpl.editClass = function(){
		return editClass();
	}
	tpl.modalWrap = function(){
		return modalWrap();
	}

	var info = function(){
		return 	'<script id="tpl_classDetail_info" type="text/html">'+
				'	<li>'+
				'		<span>班级名称：</span>'+
				'		<span>{{queueName}}</span>'+
				'	</li>'+
				'	<li>'+
				'		<span>创建时间：</span>'+
				'		<span>{{createTime}}</span>'+
				'	</li>'+
				'	<li>'+
				'		<span>班级状态：</span>'+
				'		<span>{{if queueStatus=="2"}}招生中{{else if queueStatus=="3"}}已停课{{/if}}</span>'+
				'	</li>'+
				'	<li>'+
				'		<span>班级会员：</span>'+
				'		<span>{{currNum}}人</span>'+
				'	</li>'+
				'	<li>'+
				'		<span>开班时间：</span>'+
				'		<span>{{updateTime}}</span>'+
				'	</li>'+
				'	<li>'+
				'		<span>班级描述：</span>'+
				'		<span>{{queueIntro}}</span>'+
				'	</li>'+
				'</script>';
	}
	var editClass = function(){
		return 	'<script id="tpl_classDetail_editClass" type="text/html">'+
				'	<div class="editClass-wrap">'+
				'		<div class="editClass-content form-horizontal">'+
				'			<div class="form-group grid-label-5">'+
				'			    <label for="modal_queueName" class="control-label">班级名称：</label>'+
				'			    <div class="control-input">'+
				'			    	<input type="text" class="form-control" id="modal_queueName" value="{{queueName}}">'+
				'			    </div>'+
				'			</div>'+
				'			<div class="form-group grid-label-5">'+
				'			    <label for="modal_updateTime" class="control-label">开班时间：</label>'+
				'			    <div class="control-input">'+
				'			    	<input type="date" class="form-control" id="modal_updateTime" value="{{updateTime}}">'+
				'			    </div>'+
				'			</div>'+
				'			<div class="form-group grid-label-5">'+
				'			    <label for="modal_queueIntro" class="control-label">课程描述：</label>'+
				'			    <div class="control-input">'+
				'			    	<textarea class="form-control" id="modal_queueIntro">{{queueIntro}}</textarea>'+
				'			    </div>'+
				'			</div>'+
				'			<div class="form-group grid-label-5">'+
				'			    <label for="modal_queueIntro" class="control-label">班级状态：</label>'+
				'			    <div class="control-input radio">'+
				'			    	<label class="radio-inline"><input type="radio" name="modal_queueStatus" value="2" {{if queueStatus=="2"}}checked{{/if}}>招生中</label>'+
				'			    	<label class="radio-inline"><input type="radio" name="modal_queueStatus" value="3" {{if queueStatus=="32"}}checked{{/if}}>已停课</label>'+
				'			    </div>'+
				'			</div>'+
				'		</div>'+
				'		<div class="editClass-bottom clearfix">'+
				'			<div id="editClassCancel" class="btn btn-default">取消</div>'+
				'			<div id="editClassSubmit" class="btn btn-primary">保存</div>'+
				'		</div>'+
				'	</div>'+
				'</script>';
	}
	var modalWrap = function(){
		return 	'<script id="tpl_classDetail_modalWrap" type="text/html">'+
				'	<div>'+
				'		<div class="classDetailModal-content" id="classDetailModalContent"></div>'+
				'		<div class="classDetailModal-bottom clearfix">'+
				'			{{if flag=="1"}}'+
				'				<div class="btn btn-default classDetail-cancel">取消</div>'+
				'				<div class="btn btn-primary classDetail-submit">保存</div>'+
				'			{{else if flag=="2"}}'+
				'				<div class="btn btn-default classDetail-cancel">关闭</div>'+
				'				<div class="btn btn-primary classDetail-submit">内容修改</div>'+
				'			{{/if}}'+
				'		</div>'+
				'	</div>'+
				'</script>';
	}

	return tpl;
});